﻿using UnityEngine;
using System.Collections;

public class Debugger
{
    public static bool isDebug = true;
    public static void Assert(bool condition)
    {
        if (isDebug)
        {
            Debug.Assert(condition);
        }
        

    }
    public static void Assert(bool condition, string message)
    {
        if (isDebug)
        {
            Debug.Assert(condition, message);
        }

    }
    public static void Assert(bool condition, object message)
    {
        if (isDebug)
        {
            Debug.Assert(condition, message);
        }
    }
    public static void Assert(bool condition, Object context)
    {
        if (isDebug)
        {
            Debug.Assert(condition, context);
        }
    }


    public static void Log(object message)
    {
        if (isDebug)
        {
            Debug.Log(message);
        }

    }
    public static void Log(object message, Object context)
    {
        if (isDebug)
        {
            Debug.Log(message, context);
        }

    }
    public static void LogError(object message)
    {
        if (isDebug)
        {
            Debug.LogError(message);
        }

    }
    public static void LogError(object message, Object context)
    {
        if (isDebug)
        {
            Debug.LogError(message, context);
        }
    }
    public static void LogErrorFormat(string format, params object[] args)
    {
        if (isDebug)
        {
            Debug.LogErrorFormat(format, args);
        }

    }
    public static void LogErrorFormat(Object context, string format, params object[] args)
    {
        if (isDebug)
        {
            Debug.LogErrorFormat(context, format, args);
        }
    }
    public static void LogFormat(string format, params object[] args)
    {
        if (isDebug)
        {
            Debug.LogFormat(format, args);
        }
    }
    public static void LogFormat(Object context, string format, params object[] args)
    {
        if (isDebug)
        {
            Debug.LogFormat(context, format, args);
        }
    }
    public static void LogWarning(object message)
    {
        if (isDebug)
        {
            Debug.LogWarning(message);
        }
    }
    public static void LogWarning(object message, Object context)
    {
        if (isDebug)
        {
            Debug.LogWarning(message, context);
        }

    }
    public static void LogWarningFormat(string format, params object[] args)
    {
        if (isDebug)
        {
            Debug.LogWarningFormat(format, args);
        }

    }
    public static void LogWarningFormat(Object context, string format, params object[] args)
    {
        if (isDebug)
        {
            Debug.LogWarningFormat(context, format, args);
        }

    }


}
